import os,pytest

"""
需要配置好生成报告，每次运行结束，自动生成
[pytest]
addopts =
    -vs
    --alluredir=allure-results
    --clean-alluredir
"""

if __name__ == '__main__':
    pytest.main()
    os.system('allure generate ./allure-results/ -o ./reports --clean')